import logging

from htmltestreport import  HTMLTestReport
import unittest

from config import abs_path
from tools.logging_use import init_log_config

init_log_config(abs_path+"/log/login.log")

logging.info("测试用例集合完毕")
suite = unittest.TestLoader().discover(abs_path+"/scripts","*test.py")

runner=HTMLTestReport(abs_path+"/report/IHRM_login_test_report.html",title="Ihrm登录接口测试报告",description="测试报告")
runner.run(suite)
for n in range(10):
    logging.info("测试用例执行完毕")